package comday05.itheima02;

public class Demo02 {
    public static void main(String[] args) {

        //调用方法
        getMax();

    }

    //定义方法，求三个整数的较大值
    public static void getMax(){
        int a = 20;
        int b = 20;
        int c = 15;

        if(a>=b && a>=c){
            System.out.println("最大值是" + a);
        }else if(b>=a && b>=c){
            System.out.println("最大值是" + b);
        }else{
            System.out.println("最大值是" + c);
        }
    }
}
